package com.onstar.cn.weight;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.LinearLayout;

/**
 * Created by kai zhang on 2016/1/28.
 */
public class BlockChildrenLinearLayout extends LinearLayout {
    public BlockChildrenLinearLayout(Context context) {
        super(context);
    }

    public BlockChildrenLinearLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public BlockChildrenLinearLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    //默认为false:子view的click事件不拦截
    //true：拦截子view的click事件
    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        return true;
    }
}
